package com.course.server;

import com.course.dto.PageBean;
import com.course.entity.Teacher;
import com.course.vo.Courseinfo;
import com.course.vo.SumAndAvg;

import java.util.List;

public interface TeacherService {
    /**
     * 添加老师
     * @param teacher
     */
    void addTeacher(Teacher teacher);

    List<Teacher> searchByTno(String tno);

    void deleteByTno(String tno);

    PageBean page(Integer page, Integer pageSize, String tno, String tname);

    void update(Teacher teacher);

    List<SumAndAvg> sumAndAvg();

    List<Courseinfo> courseinfo();

    Teacher login(Teacher teacher);

    List<Teacher> allteacher();
}
